/* * @Author: manu * @Date: Aug 20, 2008 */package nanocast.apps.creator.shell.model{	import nanocast.apps.creator.common.vo.ModuleVO;
	
	import org.puremvc.as3.multicore.patterns.proxy.Proxy;	/**	 * WindowProxy 	 * proxy that holds all the window panels in the application	 * 	 */	public class WindowProxy extends Proxy	{        public static const NAME:String = 'WindowProxy';        private var moduleList:Array = new Array();		public function WindowProxy(data:Object = null)        {            super( NAME, data);            moduleList = new Array();		}				public function registerModule(moduleVO:ModuleVO):void		{			moduleList.push(moduleVO);		}				public function retrieveModule(name:String):ModuleVO		{			for(var i:int = 0; i < moduleList.length; i++)			{				var moduleVO:ModuleVO = moduleList[i];				if(moduleVO.name == name)				{					return moduleVO;					}				}			return null;			}	}}